//
//  CNBBSDetailViewModel.h
//  CsdnPlus
//
//  Created by 孟瑞瑞 on 2018/7/18.
//  Copyright © 2018年 CSDN. All rights reserved.
//

#import "BaseViewModel.h"
#import "CNBBSNetManager.h"

@interface CNBBSDetailViewModel : BaseViewModel

@property (nonatomic, assign) NSInteger code;

@property (nonatomic, copy) NSString *message;




@property (nonatomic, copy) NSString *nickname;

@property (nonatomic, copy) NSString *digg_count;

@property (nonatomic, copy) NSString *url;

@property (nonatomic, copy) NSString *score;

@property (nonatomic, assign) BOOL is_digged;

@property (nonatomic, assign) NSInteger is_fav;

@property (nonatomic, copy) NSString *text_body;

@property (nonatomic, copy) NSString *title;

@property (nonatomic, copy) NSString *level;

@property (nonatomic, copy) NSString *avatar;

@property (nonatomic, copy) NSString *created_at;

@property (nonatomic, copy) NSString *username;

@property (nonatomic, copy) NSString *desc;

@property (nonatomic, copy) NSString *postId;

@property (nonatomic, assign) BOOL is_Fav;

@property (nonatomic, copy) NSString *favorite_id;


/**
 论坛详情数据
 
 @param topicId 论坛id
 
 @return 网络请求任务
 */
-(void)getBBSDetailWithTopicId:(NSString *)topicId CompletionHandle:(CompletionHandle)completionHandle; 


/**
 获取文章或者论坛是否收藏状态
 
 @param url 文章地址
 
 @return 网络请求任务
 */
-(void)getCheckCollectionWithUrl:(NSString *)url CompletionHandle:(CompletionHandle)completionHandle;


@end
